module.exports = {
  title: "20秒的勇气",
  description: "欢迎来到wenbintian的博客",
  head: [
    ['script', { },
     `var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?01611e9c2d4c65531fe791d0a83e6ebd";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
      })()`
    ]
  ], // 额外的需要被注入到当前页面的HTML<head>中的标签
  host: '0.0.0.0', // 指定用于dev server的主机名， 默认 0.0.0.0 √
  post: '8080', // 端口 √
  dest: '.vuepress/blog', // build 的输出目录 √
  base: '/blog/',
  extraWatchFiles: [], // 指定额外的需要被监听的文件 √
  cache: false, // 缓存 默认是true
  themeConfig: {
    sidebarDepth: 1, // 配置左侧侧边栏显示的深度
    // 每个页面的导航栏生成生成一个 GitHub 链接, 前缀是 https://github.com/ 加上 repo
    repo: 'wenbintian',
    editLinkText: '帮助我们改善此页面！',
    // logo: './public/logo.png'
    nav: [ // 右上角列表
      { text: '知识篇', link: '/knowledge/' },
      { text: '随身笔记', link: '/notes/' },
    ],
    sidebar: {
      '/knowledge/': [
        {
          title: '读书篇',
          path: '/knowledge/book/',
          children: [
            '/knowledge/book/knowjs1',
            '/knowledge/book/knowjs2',
            '/knowledge/book/knowjs3'
          ]
        },
        {
          title: '工具篇',
          path: '/knowledge/tool/',
          children: [
            '/knowledge/tool/tool1',
            '/knowledge/tool/tool2',
          ]
        },
        {
          title: 'CSS篇',
          path: '/knowledge/css/',
          children: [
            '/knowledge/css/css1',
            '/knowledge/css/css2',
          ]
        },
        {
          title: 'JS篇',
          path: '/knowledge/js/',
          children: [
            {
              title: 'ES6',
              path: '/knowledge/js/es6/',
              children: [
                '/knowledge/js/es6/promise',
                '/knowledge/js/es6/generator',
                '/knowledge/js/es6/proxy',
                '/knowledge/js/es6/reflect',
                '/knowledge/js/es6/iterator',
                '/knowledge/js/es6/map',
              ]
            },
            {
              title: 'VUE',
              path: '/knowledge/js/vue/',
              children: [
                '/knowledge/js/vue/vnode',
                '/knowledge/js/vue/keepAlive',
                '/knowledge/js/vue/nextTick',
                '/knowledge/js/vue/methods',
                '/knowledge/js/vue/vue-router',
                '/knowledge/js/vue/defineProperty',
              ]
            },
            {
              title: '其他',
              path: '/knowledge/js/other/',
              children: [
                '/knowledge/js/other/crossDomain',
                '/knowledge/js/other/error',
                '/knowledge/js/other/getAndPost',
                '/knowledge/js/other/http',
                '/knowledge/js/other/debounce-throttle',
              ]
            }
          ]
        },
      ],
      '/notes/': [
        {
          title: 'CSS笔记',
          path: '/notes/css/',
          sidebarDepth: 0,
          children: [
            '/notes/css/css1',
            '/notes/css/css2',
            '/notes/css/css3',
            '/notes/css/css4',
          ]
        },
        {
          title: 'JS笔记',
          path: '/notes/js/',
          sidebarDepth: 0,
          children: [
            '/notes/js/js1',
            // '/notes/js/js2',
            // '/notes/js/js3',
          ]
        },
        {
          title: '问题教程',
          path: '/notes/teach/',
          sidebarDepth: 0,
          children: [
            '/notes/teach/vue-none',
          ]
        },
      ],
    },
    lastUpdated: '最后一次修改时间'
  }

}